#include "QxDivaController.h"
#include <xTitanClient/xTitan.hpp>
#include <QtDebug>
#include <QVariant>

QxDivaController::QxDivaController(void){
	xRegisterObject(this,"QxDivaController");
}

QxDivaController::~QxDivaController(void){
}

void QxDivaController::mouseLeftButtonPressed( int mouseX, int mouseY ){
	xInput( mouseX, mouseY )
	QDivaAppController::mouseLeftButtonPressed(mouseX, mouseY);	
}

void QxDivaController::mouseLeftButtonReleased( int mouseX, int mouseY ){
	xInput(mouseX, mouseY)
	QDivaAppController::mouseLeftButtonReleased( mouseX, mouseY );
}

void QxDivaController::mouseRightButtonPressed( int mouseX, int mouseY ){
	xInput(mouseX, mouseY)
	QDivaAppController::mouseRightButtonPressed( mouseX, mouseY );
}

void QxDivaController::mouseRightButtonReleased( int mouseX, int mouseY ){
	xInput(mouseX, mouseY)

	QDivaAppController::mouseRightButtonReleased( mouseX, mouseY );
}

void QxDivaController::mouseMoving( int mouseX, int mouseY ){
	xInput(mouseX, mouseY)
	QDivaAppController::mouseMoving( mouseX, mouseY );
}

void QxDivaController::keyboardPressed( int key ){
	xInput(key)
	QDivaAppController::keyboardPressed( key );
}

void QxDivaController::keyboardReleased( int key ){
	xInput(key)
	QDivaAppController::keyboardReleased( key );
}

void QxDivaController::mouseWheelRotated( int delta ){
	xInput(delta)
	QDivaAppController::mouseWheelRotated( delta );
}

void QxDivaController::changeBackground( const QString& newBackground ){
	xInput(newBackground);
	QDivaAppController::changeBackground(newBackground);
}

